const mutations = {
  showFooter (state, payload) {
    state.showFooter = payload.showFooter
  },
  updateLoadingStatus (state, payload) {
    state.isLoading = payload.isLoading
  },
  isOrdering (state, payload) {
    state.isOrdering = payload.isOrdering
  },
  selectTime (state, payload) {
    state.selectTime = payload.selectTime
  },
  //我的信息
  USER_INFO (state, payload) {
    state.userinfo = payload.userinfo
  },
  //充值介绍
  RECHARGE_INFO (state, payload) {
    state.RechargeInfo = payload.RechargeInfo
  },
  //套餐列表
  MEAL_LIST (state, payload) {
    state.MealList = payload.MealList
  },
  //选中的优惠券
  SELECT_COUPON (state, payload) {
    state.selectCoupon = payload.selectCoupon
  },
  //选择的座位
  CHECKSEATLIST (state, payload) {
    console.log(payload)
    state.CheckSeatList = state.CheckSeatList.concat(payload.CheckSeatList)
  },
  DEL_ALL_SEAT (state, payload) {
    state.CheckSeatList = payload.CheckSeatList
  },
  //删除座位
  DEL_SEAT (state, payload) {
    state.CheckSeatList = state.CheckSeatList.filter((item, index) => {
      return item.id !== payload.CheckSeatList.id
    })
  },
  //消息详情
  M_D (state, payload) {
    state.sysMes = payload.info
  },
  //充值消息详情
  MONEY_MES (state, payload) {
    state.MoneyMes = payload.MoneyMes
  }

}

export default mutations
